<template>
    <div>
      <!-- 条件渲染指令 v-if,v-show -->
      <p v-if="flag">v-if</p>
      <p v-show="!flag">v-show</p>
      <button @click="flag = !flag">点我更换内容</button>
    </div>
  </template>
  <script setup>
  import { ref } from "vue";
  const flag = ref(true);
  </script>
  